package com.zhuangwei;

import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.web.support.SpringBootServletInitializer;

/**
 *  新建一个 ServletInitializer 类，继承 SpringBootServletInitializer
 *  <p>打成 war 包修改的第 ③ 处</p>
 * @author LeviCoder
 * @create 2019-01-30 16:17
 */
public class ServletInitializer extends SpringBootServletInitializer
{
    @Override
    protected SpringApplicationBuilder configure(SpringApplicationBuilder builder)
    {
        return builder.sources(SpringBootServletInitializer.class);
    }
}
